﻿@{
	string FlowID = Request.QueryString["flowid"];
	string StepID = Request.QueryString["stepid"];
	string GroupID = Request.QueryString["groupid"];
	string TaskID = Request.QueryString["taskid"];
	string InstanceID = Request.QueryString["instanceid"];
	string DisplayModel = Request.QueryString["display"] ?? "0";
	string DBConnID = "06075250-30dc-4d32-bf97-e922cb30fac8";
	string DBTable = "TempTest_Purchase";
	string DBTablePK = "ID";
	string DBTableTitle = "Title";
	Business.Platform.Dictionary BDictionary = new Business.Platform.Dictionary();
	Business.Platform.WorkFlow BWorkFlow = new Business.Platform.WorkFlow();
	Business.Platform.WorkFlowTask BWorkFlowTask = new Business.Platform.WorkFlowTask();
	LitJson.JsonData initData = BWorkFlow.GetFormData(DBConnID, DBTable, DBTablePK, InstanceID);
	string TaskTitle = BWorkFlow.GetFromFieldData(initData, DBTable, DBTableTitle);
}
<link href="~/Platform/WorkFlow/FormDesigner/Forms/Public/flowform.css" rel="stylesheet" type="text/css" />
<script src="~/Platform/WorkFlow/FormDesigner/Forms/Public/common.js" type="text/javascript" ></script>
<input type="hidden" id="Form_ValidateAlertType" name="Form_ValidateAlertType" value="2" />
<input type="hidden" id="Form_TitleField" name="Form_TitleField" value="TempTest_Purchase.Title" />
<input type="hidden" id="Form_DBConnID" name="Form_DBConnID" value="06075250-30dc-4d32-bf97-e922cb30fac8" />
<input type="hidden" id="Form_DBTable" name="Form_DBTable" value="TempTest_Purchase" />
<input type="hidden" id="Form_DBTablePk" name="Form_DBTablePk" value="ID" />
<input type="hidden" id="Form_DBTableTitle" name="Form_DBTableTitle" value="Title" />
<input type="hidden" id="Form_AutoSaveData" name="Form_AutoSaveData" value="1" />
<script type="text/javascript">
	var initData = @Html.Raw(BWorkFlow.GetFormDataJsonString(initData));
	var fieldStatus = @Html.Raw(BWorkFlow.GetFieldStatus(FlowID, StepID));
	var displayModel = '@DisplayModel';
	$(function (){
		formrun.initData(initData, "TempTest_Purchase", fieldStatus, displayModel);
	});
</script>
<p> </p><p> </p><p style="text-align: center;"><span style="font-size: 24px;"><strong>物资采购申请单</strong></span></p><p><span style="font-size: 12px;"><strong><br/></strong></span></p><table class="flowformtable" cellspacing="1" cellpadding="0" data-sort="sortDisabled"><tbody><tr class="firstRow"><td valign="top" style="-ms-word-break: break-all;" colspan="2">标题：<input name="TempTest_Purchase.Title" title="" class="mytext" id="TempTest_Purchase.Title" style="width: 80%;" type="text" maxlength="500" value="" type1="flow_text" isflow="1" valuetype="0"/></td></tr><tr><td width="513" valign="top" style="-ms-word-break: break-all;">申请日期：<input name="TempTest_Purchase.SqDateTime" title="" class="mycalendar" id="TempTest_Purchase.SqDateTime" type="text" value="@Utility.DateTimeNew.ShortDate" type1="flow_datetime" isflow="1" defaultvalue="4" istime="0"/></td><td width="513" valign="middle" style="-ms-word-break: break-all;">所在步骤：<span style="color: rgb(0, 0, 0); font-size: 12px;">@Html.Raw(BWorkFlow.GetStepName(StepID.ToGuid(), FlowID.ToGuid(), true))</span></td></tr><tr><td width="513" valign="top" style="-ms-word-break: break-all;">申请人：<input name="TempTest_Purchase.UserID" title="" class="mymember" id="TempTest_Purchase.UserID" type="text" value="u_@Business.Platform.Users.CurrentUserID.ToString()" type1="flow_org" more="0" isflow="1" dept="0" station="0" user="1" workgroup="0" unit="0" rootid=""/></td><td width="513" valign="top" style="-ms-word-break: break-all;">所在部门：<input name="TempTest_Purchase.UserDept" title="" class="mymember" id="TempTest_Purchase.UserDept" type="text" value="@Business.Platform.Users.CurrentDeptID" type1="flow_org" more="0" isflow="1" dept="1" station="0" user="0" workgroup="0" unit="0" rootid="@BWorkFlowTask.GetFirstSnderDeptID(FlowID.ToGuid(), GroupID.ToGuid())"/></td></tr><tr><td valign="top" style="-ms-word-break: break-all;" colspan="2"><p>申购物品明细：</p><p><table class="flowformsubtable" id="subtable_TempTest_PurchaseList_ID_ID_PurchaseID" style="margin: 0px auto; width: 99%;" cellspacing="1" cellpadding="0" issubflowtable="1"><thead><tr><td>物品名称</td><td>规格型号</td><td>单位</td><td>数量</td><td>预计金额</td><td>要求日期</td><td>申购原因</td><td><input name="flowsubtable_id" type="hidden" value="TempTest_PurchaseList_ID_ID_PurchaseID"/><input name="flowsubtable_TempTest_PurchaseList_ID_ID_PurchaseID_secondtable" type="hidden" value="TempTest_PurchaseList"/><input name="flowsubtable_TempTest_PurchaseList_ID_ID_PurchaseID_primarytablefiled" type="hidden" value="ID"/><input name="flowsubtable_TempTest_PurchaseList_ID_ID_PurchaseID_secondtableprimarykey" type="hidden" value="ID"/><input name="flowsubtable_TempTest_PurchaseList_ID_ID_PurchaseID_secondtablerelationfield" type="hidden" value="PurchaseID"/></td></tr></thead><tbody><tr type1="listtr"><td iscount="0" colname="TempTest_PurchaseList_Name"><input name="TempTest_PurchaseList_ID_ID_PurchaseID_ea7e861458263ab0e0a300b535d82780_TempTest_PurchaseList_Name" class="mytext" style="width: 100px;" type="text" value="" type1="subflow_text" valuetype="0" colname="TempTest_PurchaseList_Name" issubflow="1"/></td><td iscount="0" colname="TempTest_PurchaseList_Model"><input name="TempTest_PurchaseList_ID_ID_PurchaseID_ea7e861458263ab0e0a300b535d82780_TempTest_PurchaseList_Model" class="mytext" style="width: 100px;" type="text" value="" type1="subflow_text" valuetype="0" colname="TempTest_PurchaseList_Model" issubflow="1"/></td><td iscount="0" colname="TempTest_PurchaseList_Unit"><input name="TempTest_PurchaseList_ID_ID_PurchaseID_ea7e861458263ab0e0a300b535d82780_TempTest_PurchaseList_Unit" class="mytext" style="width: 60px;" type="text" value="" type1="subflow_text" valuetype="0" colname="TempTest_PurchaseList_Unit" issubflow="1"/></td><td iscount="1" colname="TempTest_PurchaseList_Quantity"><input name="TempTest_PurchaseList_ID_ID_PurchaseID_ea7e861458263ab0e0a300b535d82780_TempTest_PurchaseList_Quantity" class="mytext" style="width: 60px;" onblur="formrun.subtableCount('TempTest_PurchaseList_ID_ID_PurchaseID','TempTest_PurchaseList_Quantity','countspan_TempTest_PurchaseList_ID_ID_PurchaseID_TempTest_PurchaseList_Quantity');" type="text" value="" type1="subflow_text" valuetype="0" iscount="1" colname="TempTest_PurchaseList_Quantity" issubflow="1"/></td><td iscount="1" colname="TempTest_PurchaseList_Sum1"><input name="TempTest_PurchaseList_ID_ID_PurchaseID_ea7e861458263ab0e0a300b535d82780_TempTest_PurchaseList_Sum1" class="mytext" style="width: 80px;" onblur="formrun.subtableCount('TempTest_PurchaseList_ID_ID_PurchaseID','TempTest_PurchaseList_Sum1','countspan_TempTest_PurchaseList_ID_ID_PurchaseID_TempTest_PurchaseList_Sum1');" type="text" value="" type1="subflow_text" valuetype="0" iscount="1" colname="TempTest_PurchaseList_Sum1" issubflow="1"/></td><td iscount="0" colname="TempTest_PurchaseList_Date"><input name="TempTest_PurchaseList_ID_ID_PurchaseID_ea7e861458263ab0e0a300b535d82780_TempTest_PurchaseList_Date" class="mycalendar" style="width: 70px;" type="text" value="" type1="subflow_datetime" colname="TempTest_PurchaseList_Date" issubflow="1"/></td><td iscount="0" colname="TempTest_PurchaseList_Note"><input name="TempTest_PurchaseList_ID_ID_PurchaseID_ea7e861458263ab0e0a300b535d82780_TempTest_PurchaseList_Note" class="mytext" type="text" value="" type1="subflow_text" valuetype="0" colname="TempTest_PurchaseList_Note" issubflow="1"/></td><td><input name="hidden_guid_TempTest_PurchaseList_ID_ID_PurchaseID" type="hidden" value="ea7e861458263ab0e0a300b535d82780"/><input name="flowsubid" type="hidden" value="TempTest_PurchaseList_ID_ID_PurchaseID"/><input class="mybutton" style="margin-right: 4px;" onclick="formrun.subtableNewRow(this);" type="button" value="增加"/><input class="mybutton" onclick="formrun.subtableDeleteRow(this);" type="button" value="删除"/></td></tr><tr type1="counttr"><td align="right" style="text-align: right; padding-right: 20px;" colspan="11"><span style="margin-right: 10px;">数量合计：<label id="countspan_TempTest_PurchaseList_ID_ID_PurchaseID_TempTest_PurchaseList_Quantity">0</label></span><span style="margin-right: 10px;">预计金额合计：<label id="countspan_TempTest_PurchaseList_ID_ID_PurchaseID_TempTest_PurchaseList_Sum1">0</label></span></td></tr></tbody></table></p></td></tr><tr><td valign="top" style="-ms-word-break: break-all;" rowspan="1" colspan="2">备注：<textarea name="TempTest_Purchase.Note" class="mytext" id="TempTest_Purchase.Note" style="width: 80%; height: 40px;" type1="flow_textarea" isflow="1"></textarea></td></tr></tbody></table><p> </p>